HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/infra_manager/deployments/delete.yaml
- release_tracks: [GA]
  help_text:
    brief: Delete deployments
    description: Delete a deployment
    examples: |-
      To delete the deployment `example-deployment` at location `us-central1`, run:

      $ {command} projects/example-project/locations/us-central1/deployments/example-deployment
  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.infra_manager.resources:deployment
      help_text: deployments TBD
    params:
    - arg_name: delete-policy
      api_field: deletePolicy
      help_text: |-
        Policy on how resources actuated by the deployment should be deleted. The accepted values are DELETE, ABANDON.
        DELETE = Delete resources actuated by the deployment.
        ABANDON = Abandon resources and only delete deployment metadata.
  request:
    collection: config.projects.locations.deployments
    modify_request_hooks:
    - googlecloudsdk.command_lib.infra_manager.deploy_util:UpdateDeploymentDeleteRequestWithForce
  response:
    modify_response_hooks:
    - googlecloudsdk.command_lib.infra_manager.deploy_util:DeleteCleanupStagedObjects
  async:
    collection: config.projects.locations.operations